import request from "@/utils/request";
//定义枚举类统一管理接口
enum API {
  DEPARTMENTS_LIST = "/hospital/department/list",
  DEPARTMENT_INTRODUCE = "/hospital/doctor/list",
}
export const getDepartmentsListApi = () =>
  request.get<any, any>(API.DEPARTMENTS_LIST);
export const getDoctorsListApi = (departmentId: string) =>
  request.get<any, any>(
    `${API.DEPARTMENT_INTRODUCE}?departmentId=${departmentId}`
  );
